<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <title>javaScript Day02</title>
    <meta http-equiv="content-type" content="text/html; charset=utf-8" />
    <script language="javascript" src="js_demo2.js" type="text/javascript">
    		
    </script>
  </head>
  
  <body>
	<form>
		<h1>1.输入验证信息</h1>
		用户名（3到6位数字字母的组合）：<input type="text" id="txtName" onblur="validateUserName();"></input><br/>
		电话号码（6位数字）：<input type="text" id="txtPhone" onblur="validateUserPhone();"></input><br/>
		
		<h2>2.Date对象：订单时段的查询</h2>
		<input type="radio" id="chkThree" onclick="getDateRange(3);" name="date" />
		<label for="chkThree">三天内</label>
		<input type="radio" id="chkWeek" onclick="getDateRange(7);" name="date" />
		<label for="chkWeek">一周内</label>
	</form>
  </body>
</html>
